<?php if (count($this->projects)): ?>
    <ul id="projects">
    	<?php foreach ($this->projects as $project): ?>
    		<li class="<?php echo $project->getBuildStatus() ?>">
    			<?php if (in_array($project->getBuildStatus(), array('failed', 'success', 'warning'))): ?>
    				<a href="<?php echo $this->url(array('action' => 'project', 'controller' => 'index', 'project' => $project->getProjectKey())) ?>">
    					<?php echo $this->escape($project->getName()) ?>
    				</a>
    			<?php else: ?>
    				<?php echo $this->escape($project->getName()) ?>
    			<?php endif; ?>
    		</li>
    	<?php endforeach;?>
    </ul>
<?php else: ?>
    <ul id="projects_err">
        <li class="nobuild">
        <?php echo $this->translate('no projects found') ?>
        </li>
    </ul>
<?php endif; ?>